
import pandas as pd
import matplotlib.pyplot as plt



reader = pd.read_csv('d:\\py\\data\\world-population.csv')
datax=reader['Year']
datay=reader['Population']

fig, ax = plt.subplots(figsize=(8,4))
plt.plot(datax,datay)
plt.title('1960-2010年世界人口趋势图',family ='kaiti',size=20, color ='c',loc='center') 
plt.savefig("d:\\py\\1960-2010年世界人口趋势图")  
plt.show()                                                                                                                                                                                      

